package com.chsi.onjava8.stream;

import java.util.stream.Stream;

/**
 * @Auther shikf
 * @Date 2020-06-21 17:16
 */
public class Duplicator {
    public static void main(String[] args) {
        Stream.generate(() -> "duplicate")
                .limit(3)
                .forEach(System.out::println);
    }
}
